<?php
namespace WSDL;

class SimpleSoapServer
{
    /**
     * @param string $name
     * @param int $age
     * @return string $nameWithAge
     */
    public function getNameWithAge($name, $age)
    {
        return 'Your name is: ' . $name . ' and you have ' . $age . ' years old';
    }

    /**
     * @param string[] $names
     * @return string $userNames
     */
    public function getNameForUsers($names)
    {
        //FIXME correct array of $names
        return 'User names: ' . implode(', ', $names);
    }

    /**
     * @param int $max
     * @return string[] $count
     */
    public function countTo($max)
    {
        //FIXME incorrect structure of response
        $array = array();
        for ($i = 0; $i < $max; $i++) {
            $array[] = 'Number: ' . ($i + 1);
        }
        return $array;
    }
}